import request from '@/utils/request'

// 查询图库案例原文列表
export function listOriginal(query) {
  return request({
    url: '/gallery/original/list',
    method: 'get',
    params: query
  })
}

// 查询图库案例原文详细
export function getOriginal(galleryOriginalId) {
  return request({
    url: '/gallery/original/' + galleryOriginalId,
    method: 'get'
  })
}

// 新增图库案例原文
export function addOriginal(data) {
  return request({
    url: '/gallery/original',
    method: 'post',
    data: data
  })
}

// 修改图库案例原文
export function updateOriginal(data) {
  return request({
    url: '/gallery/original',
    method: 'put',
    data: data
  })
}

// 删除图库案例原文
export function delOriginal(galleryOriginalId) {
  return request({
    url: '/gallery/original/' + galleryOriginalId,
    method: 'delete'
  })
}

// 导出图库案例原文
export function exportOriginal(query) {
  return request({
    url: '/gallery/original/export',
    method: 'get',
    params: query
  })
}